#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from pathlib import Path

home = Path().home()
them_file = str(home) + "/.oh-my-zsh/custom/themes/theme1.zsh-theme"

content = """
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%} %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)'

ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"

RPROMPT='$(vi_mode_prompt_info)$(git_prompt_status)%{$reset_color%}'

ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%} "
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[yellow]%} "
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} "
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%} ➜"
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[magenta]%} ✂"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ★"
ZSH_THEME_GIT_PROMPT_UNSTAGED="%{$fg[yellow]%} ✗"
ZSH_THEME_GIT_PROMPT_STAGED="%{$fg[green]%} ✓"
"""
with open(them_file, "w") as file:
    file.write(content)
